<?php
namespace App\Http\Controllers;

use App\Models\Panorama;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Schema;

class PanoramaController extends WxBaseController{
    protected $except=['index'];
    public function index($order='created_at',$num=10){
        $panoramas = Panorama::orderBy($order,'desc')->simplePaginate($num);
        editImageUrl($panoramas);
        return $this->apiReturn(true,'success',$panoramas);
    }
}